#!/bin/bash

#yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel 

yum install -q -y cmake gcc gcc-c++ make automake autoconfig python36-devel

git clone https://gitee.com/yanjingtu/face_recognition.git

pip3 install click cycler itsdangerous Jinja2 kiwisolver MarkupSafe Pillow python_dateutil pyparsing pytz numpy scipy scikit_learn six Werkzeug wheel Flask matplotlib opencv_python dlib face_recognition_models

RUN cd /face_recognition && \
    pip3 install -r requirements.txt && \
    python3 setup.py install

CMD cd /face_recognition/examples && \
    python3 recognize_faces_in_pictures.py
